<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('业务日志详细')" />
    <th:block th:include="include :: jsonview-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m-t" id="signupForm">
        <div class="form-group">
            <label class="col-sm-2 control-label">系统模块：</label>
            <div class="form-control-static" th:text="${businesslog.get('businessLogModule')}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">登录信息：</label>
            <div class="form-control-static" th:text="${businesslog.get('businessLogUserId?')?:''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">业务内容：</label>
            <div class="form-control-static"><pre id="jsonResult"></pre></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">业务耗时：</label>
            <div class="form-control-static" th:text="${businesslog.get('businessLogCost')+'ms'}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">状态：</label>
            <div class="form-control-static" th:class="${businesslog.get('businessLogStatus') == 0 ? 'label label-primary' : ((businesslog.get('businessLogStatus') == 1) ? 'label label-danger':'label label-info')}" th:text="${businesslog.get('businessLogStatus') == 0 ? '成功' : (businesslog.get('businessLogStatus') == 1?'失败':'未知')}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">业务时间：</label>
            <div class="form-control-static" th:text="${businesslog.get('businessLogTime')}">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: jsonview-js" />
<script th:inline="javascript">
    $(function() {

        var jsonResult = [[${businesslog.get('businessLogContent')}]];
        if ($.common.isNotEmpty(jsonResult) && jsonResult.length < 2000) {
            $("#jsonResult").JSONView(jsonResult);
        } else {
            $("#jsonResult").text(jsonResult);
        }
    });
</script>
</body>
</html>